package com.nkzy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by 王建烨 on 2022/4/1 10:29
 **/

@RestController
public class PageController {
    @GetMapping
    public String getHello(){
        return "Hello Spring Boot";
    }

    @GetMapping("/hello")
    public String getHello1(){
        return "Hello Spring Boot2222";
    }
}
